-- GENERATED SPELL FOR [Amani'shi Reinforcement] --


function spell0_23587(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(32323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23587', 2309, 1)
end

function spell1_23587(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(43298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23587', 561, 1)
end

function Sorts_23587(pUnit, Event)
local choix_sorts_23587 = math.random(0, 1)
if choix_sorts_23587 == 0 then
pUnit:RegisterEvent('spell0_23587', 1, 1)
end
if choix_sorts_23587 == 1 then
pUnit:RegisterEvent('spell1_23587', 1, 1)
end
end

function mob23587_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23587', math.random(1500, 3000), 1)
end

function mob23587_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23587_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23587_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23587, 1, 'mob23587_Action')
RegisterUnitEvent(23587, 2, 'mob23587_Leave')
RegisterUnitEvent(23587, 3, 'mob23587_Kill')
RegisterUnitEvent(23587, 4, 'mob23587_Die')
